﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class rxt_gpzj_Delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int id = int.Parse(Request.QueryString["id"]);

            GpzjBLL bll = new GpzjBLL();

            if (bll.Delete(id))
                ClientScript.RegisterClientScriptBlock(GetType(), "save", "alert('删除成功');document.location='rxtGpzj.aspx'", true);
            else
                ClientScript.RegisterClientScriptBlock(GetType(), "save", "alert('删除失败,请重试');", true);
        }
    }
}